<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
<table border="1">
    <caption>汽车品牌</caption>
    <tr><th>品牌名称</th><th>售价</th><th>类型</th></tr>
    <!--v-for 让标签和数组变量进行绑定，数组有多少个元素页面就会重复生成多少组标签-->
    <tr v-for="car in arr">
        <td>{{car.name}}</td>
        <td>{{car.price}}</td>
        <td>{{car.type}}</td>

    </tr>
    <ul>
        <li v-for="name in names">{{names}}</li>
    </ul>
</table>
</div>
<script src="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/vue/2.6.14/vue.js"></script>
<script>
    let v = new Vue({
        el:"div",
        data:{
            arr:[{name:"宝马X5",price:800000,type:"SUV"},
                {name:"莱斯莱斯·幻影",price:10000000,type:"SUV"},
                {name:"玛莎拉蒂店·总裁",price:5000000,type: "SUV"}],
            names:["张三","李四","王五"]
        }
    })
</script>
</body>
</html>